package com.youshang520i.springcommonmiddleware.mq.rabbitmq.listener;


import com.youshang520i.springcommonmiddleware.mq.rabbitmq.po.Mail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;



/**
 * @author youshang
 */
//@Component
public class QueueListener1 {

    @RabbitListener(queues = "myqueue")
    public void displayMail(Mail mail) throws Exception {
        System.out.println("队列监听器1号收到消息 "+mail.toString());
    }
}
